#! /bin/bash
# 用户登录或打开新session,自动执行脚本，设置环境变量等信息

export VM_ENV=/vmenv

source $VM_ENV/scripts/alias_list
export PATH=$PATH:$VM_ENV/bin

if [ -d $VM_ENV/profile.d ]; then
    for i in $VM_ENV/profile.d/*.sh; do
	if [ -r $i ]; then
	    . $i
        fi
    done
    unset i
fi

# 命令别名
alias sudo='sudo env HOME=$HOME'

# 环境变量
export JAVA_HOME=/opt/software/jdk21
export PATH=$PATH:$JAVA_HOME/bin

export MAVEN_HOME=/opt/software/apache-maven-3.9.10
export PATH=$PATH:$MAVEN_HOME/bin

export GO_HOME=/opt/software/go
export PATH=$PATH:$GO_HOME/bin

export CONDA_HOME=/opt/software/miniconda3
export PATH=$PATH:$CONDA_HOME/condabin

export TZ='CST-8'

